package expriment3_bag;

public class Thirteen {
    public static void main(String[] args) {
        int[][]a={
                {1,55,-6},
                {34,59,86,13,-4},
                {100,75,32,25}
        };
        System.out.println("二维数组如下：");
        for (int []i :a) {
            for (int j :i) {
                System.out.print(j + "\t");
            }
            System.out.println();
        }
        int min=a[0][0];
        int minrow=0;
        int mincol=0;
        for (int i=0;i<a.length;i++) {
            for (int j=0;j<a[i].length;j++) {
                if (a[i][j]<min) {
                    min=a[i][j];
                    minrow=i;
                    mincol=j;
                }
            }
        }
        System.out.println("元素最小值："+min);
        System.out.println("元素最小值所在行："+minrow);
        System.out.println("元素最小值所在列："+mincol);
    }
}
